package com.spzx.order.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.order.domain.OrderInfo;
import com.spzx.order.form.OrderForm;
import com.spzx.order.vo.TradeVo;

import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author atguigu
 * @since 2025-05-09
 */
public interface OrderInfoService extends IService<OrderInfo> {


    TradeVo gettrade();
//生成订单流水号
    String generateTradeNo();

    Long submitOrder(OrderForm orderForm);

    OrderInfo saveOrder(OrderForm orderForm);

    TradeVo buy(Long skuId);

    List<OrderInfo> userOrderInfoList(Long userId, String orderStatus);

    void cancelOrder(Long orderId);

    OrderInfo getByOrderNo(String orderNo);

    void paymentSuccess(String orderNo);
}
